#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <stdlib.h>

int main()
{
	char file[50] = {0};
	char path[100] = {"/home/hua/yanfa15/"};
	int ret = 0;

	printf("please input a file:\n");
	scanf("%s",file);

	strcat(path,file);

	ret = mkdir(path,0755);
	if(ret == -1)
	{
		perror("mkdir");
		exit(-1);
	}

	return 0;
}
